package com.qs.springboot.service.Impl;

import com.qs.springboot.mapper.UserMapper;
import com.qs.springboot.model.User;
import com.qs.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Transactional
    public User getUserById(String userId) {
        return userMapper.selectByPrimaryKey(userId);
    }

}
